<template>
    <div>
        <my-nav-bar
            fixed
            title="滚动吧，兄弟"
            left-text="返回"
            right-text="按钮"
            @click-left="onClickLeft"
            @click-right="onClickRight"
        ></my-nav-bar>
        <h2 class="title" style="margin-top: 46px;">翻滚吧，消息</h2>
        <my-rollnotice autoplay="2000">
            <rollnotice-item>锄禾日当午</rollnotice-item>
            <rollnotice-item>汗滴禾下土</rollnotice-item>
            <rollnotice-item>谁知盘中餐</rollnotice-item>
            <rollnotice-item>粒粒皆辛苦</rollnotice-item>
        </my-rollnotice>
    </div>
</template>
<script>
export default {
  data() {
    return {
        look: 1
    };
  },
  methods: {
    onClickLeft() {
      this.$router.$go(-1);
    },

    onClickRight() {
      console.log("right");
    }
  }
};
</script>
<style lang="less" scoped>

</style>
